package com.xmut.mall.store.service.impl;

import com.xmut.mall.store.service.IndexStatisticsService;
import com.xmut.mall.store.utils.RespBean;
import com.xmut.mall.store.vo.StoreIndexStatisticsVO;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class IndexStatisticsServiceImpl implements IndexStatisticsService {

    /**
     * 根据店铺ID获取店铺的首页数据
     * @param storeId
     * @return
     */
    @Override
    public RespBean getStoreIndex(Long storeId) {
        StoreIndexStatisticsVO vo = new StoreIndexStatisticsVO();
        vo.setGoodsNum(100L);
        vo.setOrderNum(100);
        vo.setOrderPrice(new BigDecimal(1000000));
        vo.setStoreUV(10000);
        vo.setUnPaidOrder(23L);
        vo.setUnDeliveredOrder(6L);
        vo.setDeliveredOrder(12L);
        vo.setReturnGoods(2L);
        vo.setReturnMoney(3L);
        vo.setMemberEvaluation(10L);
        vo.setComplaint(2L);
        vo.setWaitUpper(1L);
        vo.setWaitAuth(2L);
        vo.setSeckillNum(9L);
        vo.setWaitPayBill(20L);
        return RespBean.success("获取成功",vo);

    }
}
